-- GENERATED SPELL FOR [Archmage Evanor] --


function spell0_25784(pUnit, Event) --@Teleport,Self--
pUnit:FullCastSpellOnTarget(46018,pUnit)
pUnit:RegisterEvent('Sorts_25784', 5000, 1)
end

function Sorts_25784(pUnit, Event)
local choix_sorts_25784 = math.random(0, 0)
if choix_sorts_25784 == 0 then
pUnit:RegisterEvent('spell0_25784', 1, 1)
end
end

function mob25784_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25784', math.random(1500, 3000), 1)
end

function mob25784_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25784_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25784_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25784, 1, 'mob25784_Action')
RegisterUnitEvent(25784, 2, 'mob25784_Leave')
RegisterUnitEvent(25784, 3, 'mob25784_Kill')
RegisterUnitEvent(25784, 4, 'mob25784_Die')
